Retrieves a collection of management objects based
on a specified query.
This class is one of the more commonly used entry points to retrieving
management information. For example, it can be used to enumerate all disk
drives, network adapters, processes and many more management objects on a
system, or to query for all network connections that are up, services that are
paused etc.
When instantiated, an instance of this class takes as input a WMI
query represented in an System.Management.ObjectQuery or it's derivatives, and optionally a System.Management.ManagementScope representing the WMI namespace
to execute the query in. It can also take additional advanced
options in an System.Management.EnumerationOptions object. When the Get() method on this object
is invoked, the ManagementObjectSearcher executes the given query in the
specified scope and returns a collection of management objects that match the
query in a System.Management.ManagementObjectCollection.